package com.ecnu.jiagou.damai.mapper;

import com.ecnu.jiagou.damai.entity.User;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    //@Select("select * from user")
    //List<User> getUsers();

    User getUserById(Long userid);

    User getUserByUsername(String username);

    //User getAccountById(Long userid)
    long addUser(User user);

    long addAccount(User user);

    boolean updateAccount(User user);

    boolean updateUser(User user);
}
